package com.chenyu.upload.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

/**
 * @author yu_chen
 * @date 2018/10/19 14:27
 */
@Data
@TableName("picture")
public class Picture {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 图片的名称
     */
    private String name;

    /**
     * 是否使用过
     */
    @TableField(value = "is_use")
    private Integer isUse;


    public Picture() {
    }

    public Picture(String name) {
        this.name = name;
    }
}
